Skip to main content

All Questions

Tagged with
1vote
1answer
134views

How to using custom colormap with pixel calculation, gray scale value by opencv and make it workable on camera [closed]

I tried to implement the mcolor colormap in the paper at page 8 to 10. I developed the code to process a image file and it works ok. Now, I want to adopt this image processing method to the camera ...
David Lin's user avatar
13votes
3answers
1kviews

Looking for the particles that are emitted when a fish is detected in Terraria

The code run perfectly fine, with no errors. However, the entirety of the code is in 1 function and is kind of hard to read. As well as that I'm not sure if and how the code could be more optimised/...
SpedEdRokay's user avatar
0votes
0answers
103views

Python 3 OpenCV script that scans a giant picture to make a video

This is a Python script that I wrote completely by myself. Basically it scans a giant picture to make a video. They say one picture is worth more than a thousand words. Since a video contains ...
Ξένη Γήινος's user avatar
6votes
1answer
2kviews

Python 3 script to make photo collages

I have written a Python script that takes a list of filenames of pictures and generates a photo collage of them. This is my most complex project yet, and I have written it completely by myself (like I ...
Ξένη Γήινος's user avatar
5votes
2answers
754views

Analyzing the darkest pixels of an image in Python

This script takes an image copied from the clipboard and analyzes the n darkest pixels of the image. It will loop through each found value, prints out the value information and the quantity, then ...
what the's user avatar
0votes
1answer
540views

Image color-moment extractor [closed]

I was just wondering if there is a way to speed up the performances of this for loops in Python. I'm trying to process an image to get the color-moments without using libraries. It takes about 12sec ...
Enrico Mosca's user avatar
6votes
1answer
273views

Dealing with lot of images and multiplications

With some basic knowledge of Python and referring a lot of sources, I have written the code below. But it takes half an hour for execution. How can I reduce the time? I read about vectorization but ...
Ankit Jaiswal's user avatar
3votes
1answer
2kviews

Image pre-processing and segmentation

I'm new learning python and image processing with python. For this reason, I took a project called "Classification of breast cancer images with deep learning". I applied the following techniques: 1)...
dogac's user avatar
6votes
1answer
4kviews

Rotating an Image using own algorithm in python

For an uni assignment I have been giving the task of making my own rotating algorithm in python. This is my code so far. ...
ACommonDane01's user avatar
4votes
1answer
378views

Loops through each row in a binary image and gets the width of each group of black or white pixels

Example image: Code: ...
Trevor's user avatar
5votes
1answer
114views

Data set generation with Python and Matplotlib

I want to use Python and Matplotlib to create a data set of images. I want to do this by transforming the plot to a numpy matrix. At the moment it takes about 0.1 second to generate 100 images of size ...
Gilfoyle's user avatar
17votes
1answer
516views

Efficiently selecting spatially distributed weighted points

Background: Motivation behind writing the following code is originated in the area of computer vision. More specifically – image rectification. In order to obtain rectified images, one has to find a ...
Georgy's user avatar
  • 1,977
10votes
1answer
19kviews

Looping over pixels in an image

I have the following code which iterates over all pixels of an image and does some manipulations on two images of the same size. I would like to speed it up and to avoid iterating over the positions ...
snowflake's user avatar
20votes
4answers
17kviews

Processing an image to extract green-screen mask

I am using OpenCV to process an image, and in my code, I have to check / edit each pixel separately: ...
Bart Friederichs's user avatar
4votes
0answers
449views

Plant/Residue Detection project, How to structure it?

Introduction I have wanted to develop this project for more than two years. I just started writing it a couple days ago. I use it to detect plant or residue pixels in crop row images but it provides ...
Sarin Suriyakoon's user avatar

153050per page
close